<?php

	$class = 'alert-information';
	switch ($messageType){
		case 'error':
			$class = 'alert-error';
			break;
		case 'warning':
			$class ='alert-warning';
			break;
		case 'information':
			$class = 'alert-information';
			break;
	}
		
		
	foreach($messageList as $message){
		echo '<div class="alert '.$class.'">';
		echo '<a class=\'close\' data-dismiss=\'alert\'>x</a>';
		echo $message;
		echo '</div>';
	}
?>